

import datetime

JSON_AS_ASCII= False  # 禁止JSON序列化时将中文转义为ASCII
JSONIFY_MIMETYPE = 'application/json; charset=utf-8'  # 设置响应MIME类型和编码

#sqlite数据库设置
# app.config['SQLALCHEMY_DATABASE_URI'] ='sqlite:/// chen.sqlite'#数据库类型及地址
# app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
# DB_URI='sqlite:/// chen.sqlite'
# SQLALCHEMY_DATABASE_URI=DB_URI
# SQLALCHEMY_TRACK_MODIFICATIONS=True#禁止sqlalchemy追踪开关.

#Mysql数据库的配置信息
HOSTNAME='127.0.0.1'
PORT='3306'
DATABASE ='flasktest'
USERNAME = 'root'
PASSWORD='123456'
DB_URI ='mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME,PASSWORD,HOSTNAME,PORT, DATABASE)
SQLALCHEMY_DATABASE_URI=DB_URI
#SQLALCHEMY_DATABASE_URI= 'mysql+pymysql://root:123456@localhost:3306/fly'
SQLALCHEMY_TRACK_MODIFICATIONS= False

#加密盐
SECRET_KEY="chenyuanfei510730"
JWT_ACCESS_TOKEN_EXPIRES=datetime.timedelta(hours=24)

#邮箱配置
# MAIL_SERVER = "smtp.qq.com"
# MAIL_P0RT = 465
# MAIL_USE_TLS = False
# MAIL_USE_SSL = True
# MAIL_DEBUG = True


APPID = 'wx5aa81556d9d2a4f0'  # 开发者关于微信小程序的appID
APPSecret = '92e066fc584f3edf12824932bb477f8c'  # 开发者关于微信小程序的appSecret